package org.xgluo;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.xgluo.config.ApplicationConfig;
import org.xgluo.services.UserDemoService;
import org.xgluo.services.UserDemoServiceConfig;
import org.xgluo.services.UserDemoServiceFix;

public class TransactionTest {

    public static void main(String[] args) {
//        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ApplicationConfig.class);
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:application_pragram.xml");
        UserDemoService bean = context.getBean(UserDemoService.class);
        bean.updateUserInfo();
//        bean.updateUserInfo1();
    }

}
